<template>
  <div class="dashboard-editor-container">


      <el-badge value="12" class="badge" >
      <el-button  @click="goToMonitor" icon="el-icon-map-location" style="font-size: 40px;width: 300px;height: 300px;margin-right: 50px"><p style="font-size: 20px">定位查询与实时跟踪</p></el-button>
      </el-badge>

    <el-badge value="12" class="badge" >
      <el-button @click="goToPath"  style="font-size: 40px;width: 300px;height: 300px;margin-right: 50px"><i ><img style="width: 32px;height: 32px"
        src="../assets/image/历史轨迹.png" height="200" width="200"/></i><p style="font-size: 20px">轨迹查询</p></el-button>
    </el-badge>

    <el-badge value="12" class="badge" >
      <el-button @click="goToWarning" style="font-size: 40px;width: 300px;height: 300px;margin-right: 50px" ><i ><img style="width: 32px;height: 32px"
      src="../assets/image/警告.png" height="200" width="200"/></i><p style="font-size: 20px">告警处理</p></el-button>
    </el-badge>



  </div>
</template>

<script>
import PanelGroup from './dashboard/PanelGroup'
import LineChart from './dashboard/LineChart'
import RaddarChart from './dashboard/RaddarChart'
import PieChart from './dashboard/PieChart'
import BarChart from './dashboard/BarChart'


export default {
  name: 'index',
  components: {
    PanelGroup,
    LineChart,
    RaddarChart,
    PieChart,
    BarChart
  },
  data() {
    return {

    }
  },
  methods: {
    goToMonitor(){
      this.$router.push('location/monitor');
    },
    goToPath(){
      this.$router.push('location/path');
    },
    goToWarning(){
      this.$router.push('location/monitor');
    },

  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  text-align: center;
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

.badge /deep/  .el-badge__content{
  font-size: 19px;
  line-height: 35px;
  width: 35px;
  height: 35px;
  margin-top: 10px;
  margin-right: 70px;
}


@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
